<?php
if($strStyleSheet == TRUE){
	echo "<table class='Normal' border='0' align='left' width='450'>";
}
     echo "
     <tr align='left'>
         <td align='left' colspan='3'>
             <H2>Category Search Result</H2>
         </td>
     </tr>
";
//include (MODULE . "/screen/SearchCategory");
//include (MODULE . "/action/qrySelectCategory");
//echo $strSQL."<br/>";
//print_array($result);
if(!$myrow[0]==""){
     do {

		echo "
		     <tr bgcolor='".switch_background($boBG)."'>
		         <td>
		             <a href='" . ScreenURL("EnterCategory",array('intCategoryID'=>$myrow["ID"]) ) . "' target='_blank'>
		             <img src='./images".SITE_SUFFIX."/update.gif' border='0' alt='Update' align='middle'></a>
		         </td>
		         <td width='300'>
					 ".$myrow["Category"]."<br/>
		             ".$myrow["Description"]."
		         </td>

		         <td align='right'>
		              <a href=\"" . ScreenURL("ListCategory",array('intCategoryID'=>$myrow[0],'ACTION'=>"qryDeleteCategory") ) . "\"
		                 onclick=\"return confirmLink(this, 'Delete ".$myrow[Category]."');\">
		              <img src='./images".SITE_SUFFIX."/delete.gif' border='0' alt='delete' align='middle'></a>
		         </td>
		";
		echo "
		     </tr>
		";

         $boBG = -1 - $boBG;
     } while ($myrow = mysql_fetch_array($result));
}else{
	echo "
	     <tr class='MandatoryRed'><br/>
	         <td colspan='3'>
	             Your Search Has Returned No Results.
	         </td>
	     </tr>
	";
}
	if($strStyleSheet == TRUE){
   		echo "</table>";
	}
?>
